package com.iweb.goods.service;

import com.iweb.goods.model.Goods;
import com.iweb.util.PageModel;

import java.util.List;

public interface GoodsService {
    //校验用户名是否存在
    public boolean isContainGoodsName(String goodsName);
    //分页查询
    public List<Goods> selectByPage(PageModel pageModel);
    //分页查询我的
    public List<Goods> selectByMyPage(PageModel pageModel,Integer userid);
    //根据id查询一条记录
    public Goods selectById(Integer goodsid);
    //新增一条记录
    public int saveOne(Goods goods);
    //修改一条记录
    public int updateOne(Goods goods);
    //删除一条记录
    public int deleteOne(Integer goodsid);
}
